/*
 * Copyright (C) 2010-2011 Comcast Cable.  All Rights Reserved.
 */
package com.hercules.android.receiver.model.objects;

/**
 * XRE resource, that represents heavy weight HTML viewer. It uses url property to load data for specific url.
 * <p>
 * AndroidAssembly3 this class was added for Android Assembly 3
 *
 * @author TCSASSEMBLER
 * @version 1.0
 */
public class XREHTMLView extends XREResource {
    /**
     * The URL of the content.
     * <p>
     * Can be any value. Has getter and setter.
     */
    private String url;

    /**
     * The content type of the HTML content. This field may be used as a "hint" for the receiver.
     * <p>
     * Can be any value. Has getter and setter.
     */
    private String contentType;

    /**
     * The navigation mode of HTML browser.
     * <p>
     * Can be any value. Has getter and setter.
     */
    private Object navigationMode;

    /**
     * The speed of resource. This value is obsolete.
     * <p>
     * Can be any value. Has getter and setter.
     */
    private double speed;

    /**
     * The position of resource. This value is obsolete.
     * <p>
     * Can be any value. Has getter and setter.
     */
    private int position;

    /**
     * Default empty constructor.
     */
    public XREHTMLView() {
        // empty
    }

    /**
     * Gets the URL of the content.
     *
     * @return the URL of the content
     */
    public String getUrl() {
        return url;
    }

    /**
     * Sets the URL of the content.
     *
     * @param url the URL of the content
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Gets the content type of the HTML content.
     *
     * @return the content type of the HTML content
     */
    public String getContentType() {
        return contentType;
    }

    /**
     * Sets the content type of the HTML content.
     *
     * @param contentType the content type of the HTML content
     */
    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    /**
     * Gets the navigation mode of HTML browser.
     *
     * @return the navigation mode of HTML browser
     */
    public Object getNavigationMode() {
        return navigationMode;
    }

    /**
     * Sets the navigation mode of HTML browser.
     *
     * @param navigationMode the navigation mode of HTML browser
     */
    public void setNavigationMode(Object navigationMode) {
        this.navigationMode = navigationMode;
    }

    /**
     * Gets the speed of resource.
     *
     * @return the speed of resource
     */
    public double getSpeed() {
        return speed;
    }

    /**
     * Sets the speed of resource.
     *
     * @param speed the speed of resource
     */
    public void setSpeed(double speed) {
        this.speed = speed;
    }

    /**
     * Gets the position of resource.
     *
     * @return the position of resource
     */
    public int getPosition() {
        return position;
    }

    /**
     * Sets the position of resource.
     *
     * @param position the position of resource
     */
    public void setPosition(int position) {
        this.position = position;
    }
}
